import Mock from 'mockjs';

Mock.mock(RegExp('/museum-role/super/user/pageUserCondition' + '.*'), 'post', {
  code: 200,
  message: '获取用户列表',
  data: {
    total: 3,
    userList: [
      {
        userId: 14,
        userName: 'rw',
        realName: '省级人员',
        userStatus: 0,
        userSex: '女',
        areaName: '大同县',
        userPassword: '123456',
        userDesc: '但行好事,莫问前程',
        userPhone: '13603527760',
        userEmail: '13603527760',
        isDeleted: 0,
        createTime: '2020-12-02 18:00:17',
        updateTime: '2020-12-28 20:26:42',
        userWork: '开发人',
        userRole: {
          roleId: 2,
          roleName: '人员一'
        },
        areaNumber: 113
      },
      {
        userId: 15,
        userName: 'lb',
        realName: '省级人员',
        userStatus: 0,
        userSex: '男',
        areaName: '大同县',
        userPassword: '123456',
        userDesc: '但行好事,莫问前程',
        userPhone: '13603527760',
        userEmail: '13603527760',
        isDeleted: 0,
        createTime: '2020-12-28 11:28:11',
        updateTime: '2020-12-28 20:37:56',
        userWork: '开发人',
        userRole: {
          roleId: 2,
          roleName: '人员一'
        },
        areaNumber: 113
      },
      {
        userId: 43,
        userName: 'lb2',
        realName: 'string',
        userStatus: 0,
        userSex: 'string',
        areaName: '大同县',
        userPassword: '123',
        userDesc: 'string',
        userPhone: 'string',
        userEmail: 'string',
        isDeleted: 0,
        createTime: '2021-01-04 12:06:21',
        updateTime: '2021-01-04 12:06:21',
        userWork: 'string',
        userRole: {
          roleId: 200,
          roleName: '默认角色'
        },
        areaNumber: 113
      }
    ]
  }
});

Mock.mock('/museum-role/super/user/addUser', 'post', {
  code: 200,
  message: '添加用户成功',
  data: null
});

Mock.mock('/museum-role/super/user/updateUser', 'put', {
  code: 200,
  message: '修改用户成功',
  data: null
});

Mock.mock(RegExp('/museum-role/super/user/deleteUser' + '.*'), 'delete', {
  code: 200,
  message: '删除用户成功',
  data: null
});
